#include "Poll_Server.hpp"



int main(int argc, char* argv[]) 
{
    //./Poll_Server [server_port]
    if(argc != 2)
    {
        std::cout << "usage: " << argv[0] << " [server_port]" << std::endl;
        exit(USAGE_ERR);
    }

    uint16_t server_port = static_cast<uint16_t>(std::stoi(argv[1]));
    std::unique_ptr<poll_server> s_p = std::make_unique<poll_server>(server_port);
    s_p->start();

    return 0;
}